package com.nineclock.attendance.controller;

import afu.org.checkerframework.checker.units.qual.A;
import com.nineclock.attendance.dto.AttendPunchDTO;
import com.nineclock.attendance.service.AttendPunchService;
import com.nineclock.common.entity.Result;
import com.nineclock.system.SysCompanyContactConfigController.AttendPunchControllerApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping
public class AttendPunchController implements AttendPunchControllerApi {

    @Autowired
    private AttendPunchService attendPunchService;


    /**
     * 打卡移动端
     * */

    @Override
    @PostMapping("/punch")
    public Result punch(@RequestBody AttendPunchDTO attendPunchDTO) {
        attendPunchService.punch(attendPunchDTO);

        return Result.success();
    }
}
